package com.woniuxy.yoga.business.model.exception;

public enum BusinessExceptionCode {
    BUSINESS_EXCEPTION_CODE_PHONE_REGISTED(20001,"该号码已有商家注册"),
    BUSINESS_EXCEPTION_CODE_REPEAT_SEND_ONEMINUTE(20002,"一分钟内不能重复发送短信"),
    BUSINESS_EXCEPTION_CODE_FIVE_SEND_ONHOUR(20003,"一小时内只能发送五次短信"),
    BUSINESS_EXCEPTION_CODE_CAPTCHA_ERROR(20004,"验证码错误"),
    BUSINESS_EXCEPTION_CODE_ACCOUNTNAME_REGISTED(20005,"该账号名已有商家注册"),
    BUSINESS_EXCEPTION_CODE_IDCARD_REGISTED(20006,"该身份证已有商家注册"),
    BUSINESS_EXCEPTION_CODE_AUTHENTICATION_FAIL(20007,"身份验证失败，请输入正确的身份证号或姓名"),
    BUSINESS_EXCEPTION_CODE_ACCOUNT_NOTEXITS(20008,"该商家账号不存在"),
    BUSINESS_EXCEPTION_CODE_ACCOUNT_STATEERROR(20009,"该账号状态异常不能进行此操作"),
    BUSINESS_EXCEPTION_CODE_APPLY_STATEERROR(20010,"已有门店通过或待审核，请勿重复申请"),
    BUSINESS_EXCEPTION_CODE_APPLY_NOTEXITS(20011,"该门店申请不存在"),
    BUSINESS_EXCEPTION_CODE_CHECK_STATEERROR(20012,"审核状态错误"),
    BUSINESS_EXCEPTION_CODE_PASS_ERROR(20013,"密码错误请重新输入"),
    BUSINESS_EXCEPTION_CODE_CAPTCHA_OUTDATE(20014, "验证码过期或不存在"),
    BUSINESS_EXCEPTION_CODE_PAYMENT_NOTEXIST(20015,"缴费不存在"),
    BUSINESS_EXCEPTION_CODE_PAYMENT_STATEERROR(20016,"缴费状态错误"),
    BUSINESS_EXCEPTION_CODE_MODIFY_PASS_REPEAT(20017,"新密码重复请重新输入"),
    BUSINESS_EXCEPTION_CODE_MODIFY_NICKNAME_REPEAT(20018,"新昵称重复请重新输入"),
    BUSINESS_EXCEPTION_CODE_ACCOUNT_DELETED(20019,"商家账号已注销 请勿重复"),
    BUSINESS_EXCEPTION_CODE_STORE_NOTDEL(20020,"门店未注销 请先注销门店"),
    BUSINESS_EXCEPTION_CODE_STORE_NOTEXITS(20021,"门店信息不存在"),
    BUSINESS_EXCEPTION_CODE_STORE_STATEERROR(20022,"门店状态异常 不能进行此操作"),
    BUSINESS_EXCEPTION_CODE_CLASSROOM_NOTEXITS(20023,"该门店教室不存在"),
    BUSINESS_EXCEPTION_CODE_CLASSROOM_STATEERROR(20024,"教室状态异常，不能进行此操作"),
    BUSINESS_EXCEPTION_CODE_PAYMENT_NOTPAY(20025,"未缴纳入驻费，请先缴纳"),
    BUSINESS_EXCEPTION_CODE_STOREREMARKS_NULL(20026,"门店简介未完善，请先完善"),
    BUSINESS_EXCEPTION_CODE_OPENTIME_NULL(20027,"门店营业时间未完善，请先完善"),
    BUSINESS_EXCEPTION_CODE_STORE_DELETED(20028,"门店已被注销，不能进行此操作"),
    BUSINESS_EXCEPTION_CODE_BUSINESS_HASSTORE(20029,"该商家已有门店，禁止再申请"),
    BUSINESS_EXCEPTION_CODE_ORDER_NOTCOMPLETED(20030,"有业务未完成，不能注销账号"),
    BUSINESS_EXCEPTION_CODE_COUNT_HASTASK(20031,"统计的定时任务已存在"),
    BUSINESS_EXCEPTION_CODE_HAS_COURSE(20032,"有课程安排，不能删除"),
    BUSINESS_EXCEPTION_CODE_CLASSROOMNAME_EXITS(20033,"教室名已存在，请重新输入"),
    BUSINESS_EXCEPTION_CODE_TEAMCLASSROOM_EXITS(20034,"团课教室已存在，不能重复添加"),
    BUSINESS_EXCEPTION_CODE_BUSINESS_NOTHASSTORE(20035,"该商家还没有门店");
    private Integer code;
    private String message;

    BusinessExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
